Page({
  data: {
    list: [
      { 'id': 0, 'hidden': true },


    ],
    list1: [
      { 'id': 0, 'hidden1': true },


    ],

    xm:'测试',
    jhr:'测试名',
    sfz:'000000000000000000',
    etsfz:'000000000000000000',
    jtel:"18300000000",
    jjtel:'18688889999',
    gx:'母亲',
    day:'2018-10-2',
    zl:'重庆石桥铺',
    xg:'活泼好动',
    tb:'喜欢运动',
    bz:'哈哈哈',


   
  },
  // 方法一
  hiddenBtn: function (e) {
    var that = this;
    // 获取事件绑定的当前组件
    var index = e.currentTarget.dataset.index;
    // 获取list中hidden的值
    // 隐藏或显示内容
    that.data.list[index].hidden = !that.data.list[index].hidden;
    that.setData({
      list: that.data.list
    })
  },

  hiddenBtn1: function (e) {
    var that = this;
    // 获取事件绑定的当前组件
    var index = e.currentTarget.dataset.index;
    // 获取list中hidden的值
    // 隐藏或显示内容
    that.data.list1[index].hidden1 = !that.data.list1[index].hidden1;
    that.setData({
      list1: that.data.list1
    })
  },

})

 